﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZkSurvey.Common.SurveyMgr
{
    public class Question
    {
        public int Id { get; set; }
        public int SurveyId { get; set; }
        public string Title { get; set; }
        public QuestionType Type { get; set; }
        public string TypeTitle { get; set; }
        public bool AllowInput { get; set; }
        public int Sort { get; set; }

        List<Option> options = null;
        public List<Option> Options
        {
            get
            {
                if (options == null)
                    options = new List<Option>();

                return options;
            }
            set
            {
                options = value;
            }
        }
    }

    public enum QuestionType
    {
        Single = 1,
        Multiple = 2,
        Input = 3
    }
}
